// 首页接口
// 导入域名
import base from "./base";
import axios from "../api";
const dataBA = {
    // 获取病毒列表
    regantList(params) {
        return axios.post(`${base.dev}/admin/data/virus_outline_list`, params);
    },
    // 获取病毒标签列表
    getSummaryDataList(params) {
        return axios.post(`${base.dev}/admin/data/virus_detail_field_list`, params);
    },
    // 获取病毒图片列表
    getPicDataList(params) {
        return axios.post(`${base.dev}/admin/data/virus_detail_pic_list`, params);
    },
    //添加病毒
    virusAdd(params) {
        return axios.post(`${base.dev}/admin/data/virus_outline_save`, params);
    },
    //删除病毒
    virusDelete(params) {
        return axios.get(`${base.dev}/admin/data/virus_outline_dele/id/${params}`);
    },
    //获取病毒详情
    showVirusData(params) {
        return axios.get(`${base.dev}/admin/data/virus_outline_edit/id/${params}`);
    },
    //添加病毒标签
    virusSummaryAdd(params) {
        return axios.post(`${base.dev}/admin/data/virus_detail_field_save`, params);
    },
    //获取病毒标签详情
    showVirusSummaryData(params) {
        return axios.get(`${base.dev}/admin/data/virus_detail_field_edit/id/${params}`);
    },
    //删除病毒标签
    deleteVirusSummaryData(params) {
        return axios.get(`${base.dev}/admin/data/virus_detail_field_dele/id/${params}`);
    },
    //添加图片案例
    virusPicAdd(params) {
        return axios.post(`${base.dev}/admin/data/virus_detail_pic_save`, params);
    },
    //获取图片案例详情
    showVirusPicData(params) {
        return axios.get(`${base.dev}/admin/data/virus_detail_pic_edit/id/${params}`);
    },
    //删除图片案例
    deleteVirusPicData(params) {
        return axios.get(`${base.dev}/admin/data/virus_detail_pic_dele/id/${params}`);
    },
}

export default dataBA